package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.VoiceRoomStatisticDO;
import com.qumitech.visualnovel.pubdef.dto.voiceroom.ConsoleVoiceRoomDataDTO;
import com.qumitech.visualnovel.pubdef.dto.voiceroom.ConsoleVoiceRoomChartDataDTO;
import com.qumitech.visualnovel.pubdef.dto.voiceroom.ConsoleVoiceRoomPieDataDTO;
import com.qumitech.visualnovel.pubdef.dto.voiceroom.query.VoiceRoomDataQueryDTO;

import java.util.HashMap;
import java.util.List;

public interface VoiceRoomStatisticDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(VoiceRoomStatisticDO record);

    int insertSelective(VoiceRoomStatisticDO record);

    VoiceRoomStatisticDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VoiceRoomStatisticDO record);

    int updateByPrimaryKey(VoiceRoomStatisticDO record);

    List<ConsoleVoiceRoomDataDTO> getList(VoiceRoomDataQueryDTO query);

    Integer getCount(VoiceRoomDataQueryDTO queryDTO);

    HashMap<String, Long> getStatisticData(VoiceRoomDataQueryDTO queryDTO);

    List<ConsoleVoiceRoomDataDTO> getListDailySum(VoiceRoomDataQueryDTO query);

    Integer getCountDailySum(VoiceRoomDataQueryDTO queryDTO);

    List<ConsoleVoiceRoomPieDataDTO> getPie(VoiceRoomDataQueryDTO query);

    List<ConsoleVoiceRoomChartDataDTO> getLine(VoiceRoomDataQueryDTO query);
}